<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    // 资源路由
    $router->resources([
        'picture_category' => 'PictureCategoryController',
        'picture'          => 'PictureController',
        'article_category' => 'ArticleCategoryController',
        'article'          => 'ArticleController',
        'admin_config'     => 'AdminConfigController',
        'user'             => 'UserController',
        'topic_category'   => 'TopicCategoryController',
        'topic'            => 'TopicController',
    ]);

});
